﻿<Page
    x:Class="WindowsStoreSampleApp.MainPage"
    DataContext="{Binding RelativeSource={RelativeSource Self}}"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WindowsStoreSampleApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="100"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <TextBox 
            x:Name="SearchTextBox"
            Margin="10" Grid.Row="1"
            Width="400" 
            Height="50"           
            HorizontalAlignment="Left" 
            KeyUp="OnTextBoxKeyUp"/>
        <TextBlock Text="{Binding Title}" Margin="728,20,376,10"/>

        <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Grid.Row="0">

            <Button x:Name="DownloadButton"
                    Content="Download JMdict file"
                    HorizontalAlignment="Center"                    
                    VerticalAlignment="Center"                      
                        Click="OnDownloadButtonClick"/>
            <ProgressBar HorizontalAlignment="Center" Height="30" Width="400" 
                         VerticalAlignment="Center" x:Name="DownloadProgress"/>
        </StackPanel>

        <ListBox x:Name="Results" Grid.Row="2"/>
    </Grid>
</Page>
